import {commonRemove, commonSubmit, getCommonPage} from "@/api/business/common";
import request from "@/router/axios";

export const getPage = (page, params) => {
  return getCommonPage('/api/uic-system/fillrepairorder/page', page, params)
}

export const submit = (form) => {
  return commonSubmit('/api/uic-system/fillrepairorder/submit', form)
}

export const remove = (id) => {
  return commonRemove('/api/uic-system/fillrepairorder/remove', id)
}

export const assignRepairOrder = (repairOrderId, userId) => {
  return request({
    url: `/api/uic-system/fillrepairorder/assignRepairOrder/${repairOrderId}/${userId}`,
    method: 'post',
  })
}
